package com.api.db;

import java.util.HashMap;
import java.util.Hashtable;

public class DBOperation {

	/**
	 * 
	 * 获取sql查询结果
	 * 
	 * @param sql
	 * @return
	 */
	public String getSQLResult(String sql) {
		Hashtable<Integer, HashMap<String, String>> selectResult = DBUtils.selectSQL(sql);
		String sqlValue = selectResult.get(0).values().toString();
		return sqlValue.substring(1, sqlValue.length() - 1);
	}

}
